Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding Colemak #674

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

feat: Adding Colemak #674

wants to merge 8 commits into from

Conversation

New9c
Copy link

@New9c New9c commented Mar 5, 2025

TLDR I tried adding Colemak as a keyboard layout.

After a recent sudo pacman -Syu, Arch Hyprland seemed to have realized my default keyboard is colemak, which is great, except for the fact that bopomofo is now all out of whack.
I found this:
https://blog.louie.lu/2024/11/15/colemak-dh-keyboard-layout-and-bopomofo-input/
so I'll see if I can do the same with just colemak.
Tests seem to be gitignored, so I'm not sure if I should write one.

@New9c New9c changed the title Adding Colemak feat: Adding Colemak Mar 5, 2025
Comment on lines 162 to 169
13 => Self::ColemakDhAnsi,
14 => Self::ColemakDhOrth,
15 => Self::Workman,
13 => Self::Colemak,
14 => Self::ColemakDhAnsi,
15 => Self::ColemakDhOrth,
16 => Self::Workman,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not change the existing number. Let's add Colemak as 16th layout.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good 👍
BTW, Workman seems to exist as a layout, so I wonder if it should be on the README's "support phonetic keyboard layout" section

@kanru
Copy link
Member

kanru commented Mar 5, 2025

Ouch, CI broke due to recent rustup update. I'll fix it tomorrow.

@New9c
Copy link
Author

New9c commented Mar 6, 2025

Should Colemak always be below Workman?
For future maintaining sake?

@kanru
Copy link
Member

kanru commented Mar 6, 2025

Should Colemak always be below Workman? For future maintaining sake?

The numerical mapping only matters for C interface compatibility. For the enum in code we can group them together.

@New9c
Copy link
Author

New9c commented Mar 6, 2025

The tests say that the return value of chewing_KBStr2Num is wrong I think?
I don't quite get it, I believe I've set Colemak as the 16th layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants